home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / Mesa-3.0 / Makefile.DJ < prev    next >
Encoding:
Makefile  |  1997-05-21  |  1.6 KB  |  59 lines

  1. # Top-level makefile for MS-DOS using DJGPP
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  2.3
  5. # Copyright (C) 1995-1997  Brian Paul
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. .PHONY : all libs samples demos clean
  22.  
  23. default: all
  24.  
  25. all: libs samples demos
  26.  
  27. libs:
  28.     -mkdir lib
  29.     cd src ; $(MAKE) -f Makefile.dj "CFLAGS = -O3 -m486"; cd ..
  30.     cd src-glu ; $(MAKE) -f Makefile.dj "CFLAGS = -O3 -m486"; cd ..
  31.     cd src-tk ; $(MAKE) -f Makefile.dj "CFLAGS = -O3 -m486"; cd ..
  32.     cd src-aux ; $(MAKE) -f Makefile.dj "CFLAGS = -O3 -m486"; cd ..
  33.  
  34. samples:
  35.     cd samples ; $(MAKE) -f Makefile.dj "CFLAGS = -O3 -m486 -s"; cd ..
  36.  
  37. demos:
  38.     cd demos ; $(MAKE) -f Makefile.dj "CFLAGS = -O3 -m486 -s"; cd ..
  39.  
  40. clean:
  41.     del src\*.o
  42.     del src\*.a
  43.     del src-aux\*.o
  44.     del src-aux\*.a
  45.     del src-glu\*.o
  46.     del src-glu\*.a
  47.     del src-tk\*.o
  48.     del src-tk\*.a
  49.     del samples\*.
  50.     del demos\*.
  51.  
  52. # Remove everthing that can be remade
  53. realclean: clean
  54.     del lib\*.a
  55.     del samples\*.exe
  56.     del demos\*.exe
  57.  
  58.  
  59.